﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MakeRepayment.ascx.cs" Inherits="Controls_MakeRepayment" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
<ajax:ModalPopupExtender 
    runat="server" 
    ID="programmaticModalPopup" 
    TargetControlID="hiddenTargetControlForModalPopup" 
    PopupControlID="programmaticPopup"
    DropShadow="True" 
    CancelControlID="infoBoxCancelButtonID"
    PopupDragHandleControlID="programmaticPopupDragHandle"
    RepositionMode="RepositionOnWindowResizeAndScroll">
</ajax:ModalPopupExtender>

<asp:Panel runat="server" ID="programmaticPopup" Style=" width:500px; height:300px; background-color: white; border: 1px solid Gray; display: none; position: absolute; top: 30%; left:30%;" >
     
    <div runat="server" ID="programmaticPopupDragHandle" style="border: 10px solid #107FC9; text-align:center; font-size:15pt; text-transform:uppercase; cursor: move; "></div>        

    <div runat="server" id="bodyMessageDiv">
        <div><asp:Label ID="infoBoxTitleLabel" runat="server" Text="Loan Repayments"></asp:Label></div>
        <br />
        <div class="table">            
            <div class="row">
               <div class="cell">Transaction date*</div>
               <div class="cell"><asp:TextBox ID="transactionDateTextBox" runat="server"></asp:TextBox>
                    <ajax:CalendarExtender ID="transactionDateCalendarExtender" runat="server"  TargetControlID="transactionDateTextBox" /></div>
            </div>
            <br />
            <div class="row">
                <div class="cell">Transaction amount*</div>
                <div class="cell"><asp:TextBox runat="server" ID="transactionAmounTextBox"></asp:TextBox></div>
            </div>            
        </div>
        <asp:HiddenField ID="penaltyHiddenField" runat="server" />
        <asp:HiddenField ID="loanHiddenField" runat="server" />

        <asp:HiddenField ID="payHiddenField" runat="server" />
    </div>   
    <br />
    <div style="clear:both;"></div>  
    <div style="text-align:center;" >
        <asp:Button ID="infoBoxOkButton" runat="server" Text="Ok" Width="150px" OnClick="saveButton_Click" />
        <asp:Button ID="infoBoxCancelButtonID" runat="server" Text="Cancel" Width="150px" OnClick="cancelButton_Click" />
    </div>

</asp:Panel>